#include "stm32f10x.h"
#include "LED.h"
#include "switch.h"
uint8_t KeyNum = 0;
int main(void)
	{
		int ON=1;
		int OFF=0;
		int a=0,b=0;
		LED_Init();
		Switch_Init();
		while(1)
		{
			KeyNum=0;
			KeyNum=Key_NumGet();
			if(KeyNum==1&&a==0)
				a=1;
			else if(KeyNum==1&&a==1)
				a=0;
			if(KeyNum==2&&b==0)
				b=1;
			else if(KeyNum==2&&b==1)
				b=0;
			LED1_Set(a);
			LED2_Set(b);
			
		}
		
	}
	